package com.waverider.promotion.model;

import java.util.Date;

public class PromotionQueryModel extends BaseQueryModel
{
	/**
	 * 
	 */
	private static final long serialVersionUID = 6139079101107377003L;
	private Long shopId;
	private Integer status;
	private Date startTime;
	private Date endTime;

	public Integer getStatus()
	{
		return status;
	}


	public Date getStartTime()
	{
		return startTime;
	}


	public Date getEndTime()
	{
		return endTime;
	}


	public void setStatus(Integer status)
	{
		this.status = status;
	}


	public void setStartTime(Date startTime)
	{
		this.startTime = startTime;
	}


	public void setEndTime(Date endTime)
	{
		this.endTime = endTime;
	}


	public Long getShopId()
	{
		return shopId;
	}


	public void setShopId(Long shopId)
	{
		this.shopId = shopId;
	}


	public static PromotionQueryModel buildQueryModel(Long shopId, Integer status, Date startTime, Date endTime, Long currentPage, Long pageSize)
	{
		PromotionQueryModel queryModel = new PromotionQueryModel();
		queryModel.shopId = shopId;
		queryModel.status = status;
		queryModel.startTime = startTime;
		queryModel.endTime = endTime;
		queryModel.setCurrentPage(currentPage);
		queryModel.setPageSize(pageSize);
		return queryModel;
	}
}
